package tpoo.server.model.users;

import java.io.Serializable;
import java.util.Observable;

import tpoo.common.dto.model.ObjectID;

public abstract class DomainObject extends Observable implements Serializable{

	private static final long serialVersionUID = -4766484571081752889L;
	
	private Long oid;
	
	public DomainObject(Long id) {
		setOid(id);
	}

	private void setOid(Long oid) {
		this.oid = oid;
	}

	public Long getOid() {
		return oid;
	}
	
	public ObjectID getId() {
		return new ObjectID(oid);
	}
	
	
}
